package com.command.self;

public class TvOnCommand implements Command{

    private TV tv;

    public void setTv(TV tv) {
        this.tv = tv;
    }

    public TvOnCommand(TV tv) {
        this.tv = tv;
    }

    @Override
    public void execute() {
        this.tv.open();
    }

    @Override
    public void undo() {
        this.tv.close();
    }
}
